

#pragma  once

#include "AnyApplication.h"

template<class TFunctionDriver>
class CRegFunctionDriverHelper
{
public:
	CRegFunctionDriverHelper()
	{
		TFunction_DriverTable::Get()->AddDriver(TFunctionDriver::GetID(), 
			new TFunctionDriver());
	}
	~CRegFunctionDriverHelper()
	{
		
	}
};


#define REGISTER_FUNCTIONDRIVER(TFunctionDriver) \
	static CRegFunctionDriverHelper<TFunctionDriver> s_functionDriver;